<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>LANYRD</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="css/global.css" rel="stylesheet" type="text/css" />
<script src="js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="js/common.js" type="text/javascript"></script>
</head>

<body>
    <div class="web">
        <div class="web_head">
            <?php include 'header.html' ?>
        </div>
        <div class="clearfloat"></div>
        <div class="web_content">
            
            <div class="container">
                <div class="center">
                    <div class="contacts right">
                        <div>
                            <div>                    
                                <div>
                                    <h3>Contact Information</h3>
                                    <dl>
                                        <dt>General Inquiries</dt>
                                        <dd><p><a href="mailto:aquilamediagroup@gmail.com" rel="nofollow">aquilamediagroup@gmail.com</a></p>
                                        </dd>
                                        
                                        <dt>Compliance Issues</dt>
                                        <dd><p><a href="mailto:aquilamediagroup@gmail.com" rel="nofollow">aquilamediagroup@gmail.com</a></p>
                                        </dd>
                                        
                                        
                                       <dt>AIM Support</dt>
                                        <dd>
                                          <div class="contact_skype">
                                              <a href="skype:aqlmedia.michael?call"><img width="90" height="22" alt="My status" style="border: none;" src="http://mystatus.skype.com/bigclassic/aqlmedia%2Emichael"></a>
                                          </div>
                                          <div class="contact_skype">
                                              <a href="skype:trong.truong?call"><img width="90" height="22" alt="My status" style="border: none;" src="http://mystatus.skype.com/bigclassic/trong%2Etruong"></a>
                                          </div>
                                          <div class="contact_skype">
                                              <a href="skype:spartarcusdavid?call"><img width="90" height="22" alt="My status" style="border: none;" src="http://mystatus.skype.com/bigclassic/spartarcusdavid"></a>
                                          </div>
                                        </dd>
                                    </dl>
                                </div>                
                            </div>
                        </div>
                    </div>        <div class="col-main">        
                        <div class="contactForm radius">
                            <h3>Send Us a Message!</h3>
                            <p><strong>Need to get in touch with us?</strong> Please use the short form below to contact us.</p>
                            <br>                <br>                <div>
                            <form method="post" action="/contact-us.php">
                                <div class="half left">
                                      <label>Name <span class="required">*</span></label><span><input type="text" size="40" value="" name="name" id="name"></span>
                                </div>
                                <div class="half right">
                                     <label>E-mail Address <span class="required">*</span></label><span><input type="text" size="40" value="" name="email" id="email"></span>
                                </div>
                                <div class="half left">
                                      <label>Phone</label><span><input type="text" size="40" value="" name="phone" id="phone"></span>
                                </div>
                                <div class="half right">
                                     <label>Website</label><span><input type="text" size="40" value="" name="website" id="website"></span>
                                </div>                                                            
                                <div class="item">
                                      <label>Message <span class="required">*</span></label><span><textarea rows="10" cols="40" id="msg" name="msg"></textarea></span>
                                </div>
                                
                                
                                <div class="item a-right">
                                     <input type="submit" id="id-submit-form" value="Send Message »">
                                </div>
                            </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
        </div>
        <div class="clearfloat"></div>
        <div class="web_footer">
            <?php include 'footer.html' ?>
        </div>
    </div>
</body>
</html>

<script>
    $(document).ready(function(){
        $('#id-submit-form').live('click',function(e){
            e.preventDefault();
            var name = $('#name').val();
            var email = $('#email').val();
            var msg = $('#msg').val();
            var phone = $('#phone').val();
            var website = $('#website').val();
            if(name == "") {
                alert('PLease input name field!');
                $('#name').focus();
                return false;
            }
            if(!email.match(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/)) {
                alert('PLease input valid email');
                $('#email').focus();
                return false;
            }
            if(msg == "") {
                alert('PLease input message field!');
                $('#msg').focus();
                return false;
            }
            $.ajax({
                url: '/aquila/contactSubmit.php',
                data: {
                    name:name,
                    email:email,
                    phone:phone,
                    website:website,
                    msg:msg,
                },
                type: 'POST',
                timeout: 60000,
                dataType: 'json',
                success: function(data) {
                  if(data.status == 0) {
                      alert('Error:' + data.mess);
                  } else {
                      alert('Message sent!');
                  }
                },
                error: function(xhr, st, er) {
                    console.log("Request error:" + er);
                }
            });
        });
    });
</script>